<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:p="http://www.springframework.org/schema/p"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd">
	
	<!-- 도메인을 위한 세션 팩토리를 설정한다. -->
	<bean id="newbizSessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<property name="annotatedClasses">
			<list>
				<value>com.foundationmade.newbiz.business.foundation.domain.Foundation</value>
				<value>com.foundationmade.newbiz.business.founder.domain.Founder</value>
				<value>com.foundationmade.newbiz.business.founder.domain.FounderHistory</value>
				<value>com.foundationmade.newbiz.business.businesscard.domain.BusinessCard</value>
				<value>com.foundationmade.newbiz.core.archive.domain.Archive</value>
			</list>
		</property>
		<property name="mappingResources">
			<list>
			
			</list>
		</property>
		<property name="hibernateProperties">
			<ref bean="newbizDaoProperty"/>
		</property>
	</bean>
	
	<!-- 세션 팩토리에 대한 트랙잭션 매니저를 설정한다. -->
	<bean id="newbizTransactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
		<property name="sessionFactory">
			<ref bean="newbizSessionFactory"/>
		</property>
	</bean>
	
	<!-- 트랜잭션 매니저에 대한 annotation을 설정한다. -->
	<tx:annotation-driven transaction-manager="newbizTransactionManager"/>
	
</beans>